/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package koala.objects;

import java.util.ArrayList;
import java.util.Comparator;

public class Project implements Comparator<Project> {
    private String projectName;
    private ProjectLeader projectLeader;
    private ArrayList<User> projectMembers;
    private boolean status;
    
    public Project(){
        
    }
    
    public Project(String projectName, ProjectLeader projectLeader, ArrayList<User> projectMembers, boolean status){
        this.projectName = projectName;
        this.projectLeader =  projectLeader;
        this.projectMembers = projectMembers;
        this.status = status;
    }
     
    public Project(String projectName, ProjectLeader projectLeader, boolean status){
        this.projectName = projectName;
        this.projectLeader =  projectLeader;
        this.status = status;
    }
    
    public String getProjectName(){
        return projectName;
    }
    
    public ProjectLeader getProjectLeader(){
        return projectLeader;
    }
    
    public ArrayList<User> getMembers(){
        return projectMembers;
    }
    
    public boolean getStatus(){
        return status;
    }
    
    public void setProjectName(String projectName){
        this.projectName = projectName;
    }
    
    public void setProjectLeader(ProjectLeader projectLeader){
        this.projectLeader = projectLeader;
    }
    
    public void setProjectMembers(ArrayList<User> projectMembers){
        this.projectMembers = projectMembers;
    }
    
    public void setStatus(boolean status){
        this.status = status;
    }

    @Override
    public int compare(Project o1, Project o2) {
        return Boolean.compare(o1.status, o2.status);
    }
}
